package package02;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description 对数据进行规整 ： 访问时间、手机号、源IP、目标网站、上行流量、下行流量、状态码
 * 使用javabean
 * @Author zzj
 * @Date 2020/7/17 17:44
 */
public class Flow implements Serializable {
    // field
    Integer id;
    Date accessTime;
    String phone;
    String src;
    String url;
    Integer upStream;
    Integer downStream;
    String status;

    public Flow() {
    }

    public Flow(Integer id, Date accessTime, String phone, String src, String url, Integer upStream, Integer downStream, String status) {
        this.id = id;
        this.accessTime = accessTime;
        this.phone = phone;
        this.src = src;
        this.url = url;
        this.upStream = upStream;
        this.downStream = downStream;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getAccessTime() {
        return accessTime;
    }

    public void setAccessTime(Date accessTime) {
        this.accessTime = accessTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getUpStream() {
        return upStream;
    }

    public void setUpStream(Integer upStream) {
        this.upStream = upStream;
    }

    public Integer getDownStream() {
        return downStream;
    }

    public void setDownStream(Integer downStream) {
        this.downStream = downStream;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Flow{" +
                "id=" + id +
                ", accessTime=" + accessTime +
                ", phone='" + phone + '\'' +
                ", src='" + src + '\'' +
                ", url='" + url + '\'' +
                ", upStream='" + upStream + '\'' +
                ", downStream='" + downStream + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
